package com.ruoyi.customerService.enums;

import com.ruoyi.hqfinance.enums.HqInformStandardSheetEnum;

/**
 * 用户状态
 *
 * @author ruoyi
 */
public enum TaskStatusEnum
{
    waiting("waiting", "待认领"),
    dealing("dealing", "处理中"),
    headIntervention("headIntervention", "总部介入中"),
    finish("finish", "已完结");

    private final String code;
    private final String info;

    TaskStatusEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (TaskStatusEnum value : TaskStatusEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
